#include "common.h"
#include <iomanip>

int main(int argc, char* argv[]) {
    if (argc < 2) {
        std::cerr << "使用方法: " << argv[0] << " <视频文件>" << std::endl;
        return 1;
    }
    
    init_ffmpeg();
    
    std::string filename = argv[1];
    VideoInfo info = get_video_info(filename);
    
    if (info.width == 0) {
        std::cerr << "❌ 无法获取视频信息" << std::endl;
        return 1;
    }
    
    print_video_info(info);
    return 0;
}
